<#include "/view/common/command/para.html">
<div id="testReportPreview" class="zs-ibox" style="width:98%;max-width:1250px;text-align:left;" ng-style="{'overflow':'auto','max-height':(Map_H - 100)+'px'}" >	
     <table class="zs-dataComparison-tab">
			<tbody>
	            <tr>
	                <td class="center" style="font-weight: bold;width:200px;">样品编号</td>
	                <td class="center" style="font-weight: bold;min-width:200px;">采样时间</td>	             
	                <td class="center" style="font-weight: bold;width:200px;">在线仪器<br/>测定值</td>
	                <td class="center" style="font-weight: bold;width:200px;">实验室<br/>测定值</td>
	                <td class="center" style="font-weight: bold;width:200px;">绝对误差</td>
	                <td class="center" style="font-weight: bold;width:200px;">相对误差（%）</td>
	                <td class="center" style="font-weight: bold;width:200px;">结果判定</td>
	                <td class="center" style="font-weight: bold;width:200px;">备注</td>
	                <td class="center"style="font-weight: bold;width:200px;"  ng-show="param!='029'&&param!='024'&&$param!='028'">操作</td>
	            </tr>
        	</tbody>
        	<tbody>
           		<tr   ng-repeat="row in WaterTableRowList" ng-show="param!='029'&&param!='024'&&param!='028'">
				    <td class="center">
				      <input type="text" ng-model="row.SAMPLENUMBER" style="text-align:center;border: 1px solid #D0D0D0;width:100px;" />
				    </td>
				    
				    <td class="center">		
				    <input type="text" class="zs-input" ng-model="row.SAMPLEBEGINTIME" ng-click="ontimeWin(row,$index,'0')"/>
				   	<br/>~<br/>
				   	 <input type="text" class="zs-input" ng-model="row.SAMPLEENDTIME" ng-click="ontimeWin(row,$index,'1')"/>
				   	</td>
				   					 
				    <td class="center">
				       <input type="hidden" ng-model="row.ONLINEINSVALUE"  style="text-align:center;border: 1px solid #D0D0D0;width:100px;" />
				    	<span>{{row.ONLINEINSVALUE}}</span>
				    </td>
				    
				     <td class="center">
				      <input type="text" ng-model="row.LABORATORYVALUE"   ng-change="onCalculateErrorClick(row,$index)" style="text-align:center;border: 1px solid #D0D0D0;width:100px;" />
				    </td>
				    
				     <td class="center">
				       <input type="hidden" ng-model="row.ABSOLUTEERROR" style="text-align:center;width:100px;" />
				       	 		<span ng-show="row.ABSOLUTEERROR!=''&&row.ABSOLUTEERROR!=null">{{row.ABSOLUTEERROR|number:2}}</span>
				       	<span ng-show="row.LABORATORYVALUE==''||row.LABORATORYVALUE==null
				       ||row.ONLINEINSVALUE==''||row.ONLINEINSVALUE==null">&nbsp;</span> 
				    </td>
				    
				    <td class="center">
				       <input type="hidden" ng-model="row.RELATIVEERROR" style="text-align:center;width:100px;" />
				       	<span ng-show="row.RELATIVEERROR!=''&&row.RELATIVEERROR!=null">{{row.RELATIVEERROR|number:2}}%</span>
				       	<span ng-show="row.LABORATORYVALUE==''||row.LABORATORYVALUE==null
				       ||row.ONLINEINSVALUE==''||row.ONLINEINSVALUE==null">&nbsp;</span>					       
				    </td>
				      <td class="center">
				      	<input type="hidden" ng-model="row.EVARESULTE" style="text-align:center;width:100px;" />
				      	 	<span ng-show="row.EVARESULTE=='0'">合格</span>	 
				      	 	<span ng-show="row.EVARESULTE=='1'">不合格</span>	 
				      	 	<span ng-show="row.EVARESULTE==''||row.EVARESULTE==null">&nbsp;</span>	 
				    </td>
				    <td class="center">
				       <input type="text" ng-model="row.REMARK" style="text-align:center;border: 1px solid #D0D0D0;width:100px;" />
				    </td>
				    <td class="center"  style="text-align:center;" >
	        		 	<input type="hidden" ng-model="row.GUID"  style="text-align:center;border: 1px solid #D0D0D0;width:100px;" />
				       <input  type="button" value="删除" class="zs-btn" ng-click="onDetTableRowClick($index,row.GUID)">   		
	        		</td>
				</tr> 						 				
        	</tbody>
        	<tbody ng-show="param=='029'||param=='024'||param=='028'">
	        	<tr ng-repeat="row in WaterTableRowList">
	        	  	<td class="center" ng-show="$index%3==0&&row.SAMPLENUMBER!='平均值'&&$index<=8" rowspan="3">
				      <input type="text" ng-model="row.SAMPLENUMBER" style="text-align:center;border: 1px solid #D0D0D0;width:100px;" />
				    </td>				   
				    
				    <td class="center" ng-show="$index%9==0&&row.SAMPLENUMBER!='平均值'&&$index<=8" rowspan="9">		
				      <input type="text" class="zs-input" ng-model="row.SAMPLEBEGINTIME" ng-click="ontimeWin(row,$index,'0')"/>
				   	<br/>~<br/>
				   	 <input type="text" class="zs-input" ng-model="row.SAMPLEENDTIME" ng-click="ontimeWin(row,$index,'1')"/>
				   	</td>	
				   			 
				    <td class="center" ng-show="row.SAMPLENUMBER!='平均值'&&$index<=8">
				       <input type="hidden" ng-model="row.ONLINEINSVALUE"  style="text-align:center;border: 1px solid #D0D0D0;width:100px;" />
				    	<span ng-show="row.ONLINEINSVALUE!=''&&row.ONLINEINSVALUE!=null">{{row.ONLINEINSVALUE|number:2}}</span>
				    	<span ng-show="row.ONLINEINSVALUE==''||row.ONLINEINSVALUE==null"></span>
				    </td>
				    
				     <td class="center" ng-show="$index%3==0&&row.SAMPLENUMBER!='平均值'&&$index<=8" rowspan="3">
				      <input type="text" ng-model="row.LABORATORYVALUE" ng-click="calculateErrorWater(row,$index)" ng-change="calculateErrorWater(row,$index)"  style="text-align:center;border: 1px solid #D0D0D0;width:100px;" />
				    </td>
					<td class="center" ng-show="$index%9==0&&row.SAMPLENUMBER!='平均值'&&$index<=8" rowspan="9">
				       <input type="hidden" ng-model="row.ABSOLUTEERROR" style="text-align:center;width:100px;" />
				       	 	<span ng-show="row.ABSOLUTEERROR!=''&&row.ABSOLUTEERROR!=null">{{row.ABSOLUTEERROR|number:2}}</span>
				       	<span ng-show="row.LABORATORYVALUE==''||row.LABORATORYVALUE==null
				       ||row.ONLINEINSVALUE==''||row.ONLINEINSVALUE==null">&nbsp;</span>				       
				    </td>	
				    <td class="center" ng-show="$index%9==0&&row.SAMPLENUMBER!='平均值'&&$index<=8" rowspan="9">
				       <input type="hidden" ng-model="row.RELATIVEERROR" style="text-align:center;width:100px;" />
				      	<span ng-show="row.RELATIVEERROR!=''&&row.RELATIVEERROR!=null">{{row.RELATIVEERROR|number:2}}%</span>
				       	<span ng-show="row.LABORATORYVALUE==''||row.LABORATORYVALUE==null
				       ||row.ONLINEINSVALUE==''||row.ONLINEINSVALUE==null">&nbsp;</span>		
				    </td>
				      <td class="center" ng-show="$index%9==0&&row.SAMPLENUMBER!='平均值'&&$index<=8" rowspan="9">
				      	<input type="hidden" ng-model="row.EVARESULTE" style="text-align:center;width:100px;" />
				      	 	<span ng-show="row.EVARESULTE=='0'">合格</span>	 
				      	 	<span ng-show="row.EVARESULTE=='1'">不合格</span>	 
				      	 	<span ng-show="row.EVARESULTE==''||row.EVARESULTE==null">&nbsp;</span>	 
				    </td>
				    <td class="center" ng-show="$index%9==0&&row.SAMPLENUMBER!='平均值'&&$index<=8" rowspan="9">
				       <input type="text" ng-model="row.REMARK" style="text-align:center;border: 1px solid #D0D0D0;width:100px;" />
				    </td>
				    <!--下标大于8-->
				    <td class="center" ng-show="($index-row.count)%3==0&&row.SAMPLENUMBER!='平均值'&&$index>9" rowspan="3">
				     <input type="text" ng-model="row.SAMPLENUMBER" style="text-align:center;border: 1px solid #D0D0D0;width:100px;" />
				    </td>				   
				    <td class="center" ng-show="($index-row.count)%9==0&&row.SAMPLENUMBER!='平均值'&&$index>9" rowspan="9">		
				      <input type="text" class="zs-input" ng-model="row.SAMPLEBEGINTIME" ng-click="ontimeWin(row,$index,'0')"/>
				   	<br/>~<br/>
				   	 <input type="text" class="zs-input" ng-model="row.SAMPLEENDTIME" ng-click="ontimeWin(row,$index,'1')"/>	</td>			 
				    <td class="center" ng-show="row.SAMPLENUMBER!='平均值'&&$index>9">
				       <input type="hidden" ng-model="row.ONLINEINSVALUE"  style="text-align:center;border: 1px solid #D0D0D0;width:100px;" />
				        <input type="hidden" ng-model="row.GUID"  style="text-align:center;border: 1px solid #D0D0D0;width:100px;" />
				    	<span ng-show="row.ONLINEINSVALUE!=''&&row.ONLINEINSVALUE!=null">{{row.ONLINEINSVALUE|number:2}}</span>
				    	<span ng-show="row.ONLINEINSVALUE==''||row.ONLINEINSVALUE==null"></span>
				    </td>
				     <td class="center" ng-show="($index-row.count)%3==0&&row.SAMPLENUMBER!='平均值'&&$index>9" rowspan="3">
				      <input type="text" ng-model="row.LABORATORYVALUE" ng-click="calculateErrorWater(row,$index)" ng-change="calculateErrorWater(row,$index)"  style="text-align:center;border: 1px solid #D0D0D0;width:100px;" />
				    </td>
					 <td class="center" ng-show="($index-row.count)%9==0&&row.SAMPLENUMBER!='平均值'&&$index>9" rowspan="9">
				       <input type="hidden" ng-model="row.ABSOLUTEERROR" style="text-align:center;width:100px;" />
				       	 	<span ng-show="row.ABSOLUTEERROR!=''&&row.ABSOLUTEERROR!=null">{{row.ABSOLUTEERROR|number:2}}</span>
				       	<span ng-show="row.LABORATORYVALUE==''||row.LABORATORYVALUE==null
				       ||row.ONLINEINSVALUE==''||row.ONLINEINSVALUE==null">&nbsp;</span>				       
				    </td>
				    <td class="center" ng-show="($index-row.count)%9==0&&row.SAMPLENUMBER!='平均值'&&$index>9" rowspan="9">
				       <input type="hidden" ng-model="row.RELATIVEERROR" style="text-align:center;width:100px;" />
				        <span ng-show="row.RELATIVEERROR!=''&&row.RELATIVEERROR!=null">{{row.RELATIVEERROR|number:2}}%</span>
				       	<span ng-show="row.LABORATORYVALUE==''||row.LABORATORYVALUE==null
				       ||row.ONLINEINSVALUE==''||row.ONLINEINSVALUE==null">&nbsp;</span>		
				    </td>
				      <td class="center" ng-show="($index-row.count)%9==0&&row.SAMPLENUMBER!='平均值'&&$index>9" rowspan="9">
				      	<input type="hidden" ng-model="row.EVARESULTE" style="text-align:center;width:100px;" />
				      	 	<span ng-show="row.EVARESULTE=='0'">合格</span>	 
				      	 	<span ng-show="row.EVARESULTE=='1'">不合格</span>	 
				      	 	<span ng-show="row.EVARESULTE==''">&nbsp;</span>	 
				    </td>
				    <td class="center" ng-show="($index-row.count)%9==0&&row.SAMPLENUMBER!='平均值'&&$index>9" rowspan="9">
				       <input type="text" ng-model="row.REMARK" style="text-align:center;border: 1px solid #D0D0D0;width:100px;" />
				    </td>		
				    <!--平均值-->	
				  <td class="center" ng-show="row.SAMPLENUMBER=='平均值'" >
				    	{{row.SAMPLENUMBER}}
				    </td>				   
				    <td class="center" ng-show="row.SAMPLENUMBER=='平均值'">		
				   		—
				   	</td>			 
				    <td class="center" ng-show="row.SAMPLENUMBER=='平均值'">
						—
				    </td>
				     <td class="center" ng-show="row.SAMPLENUMBER=='平均值'">
				     	<span ng-show="row.LABORATORYVALUE!=''&&row.LABORATORYVALUE!=null&&row.LABORATORYVALUE!='NaN'">{{row.LABORATORYVALUE|number:2}}</span>
				       	<span ng-show="row.LABORATORYVALUE==null||row.LABORATORYVALUE==''||row.LABORATORYVALUE=='NaN'">&nbsp;</span>
				    </td>
					 <td class="center" ng-show="row.SAMPLENUMBER=='平均值'" >
				       —
				    </td>
				    <td class="center" ng-show="row.SAMPLENUMBER=='平均值'" >
				       —
				    </td>
				    <td class="center" ng-show="row.SAMPLENUMBER=='平均值'">
				      	— 
				    </td>
				    <td class="center" ng-show="row.SAMPLENUMBER=='平均值'" >
				      —
				    </td>
				</tr>
        	</tbody>
    	</table>
  </div> 
  <div com-dialog width="320" height="90" title="时间" ng-model="timeDialog" >
	<#include "${viewDir}/WasteWater/DataComparison/TestingReport/timeWin.html">
</div> 	
